package com.liam.lotterysystem.service;

import com.liam.lotterysystem.controller.param.DrawPrizeParam;
import com.liam.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.liam.lotterysystem.dao.dataobject.WinningRecordDO;
import com.liam.lotterysystem.service.dto.WinningRecordDTO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-10-31
 * @Description:
 * @Version: 1.0
 */

@Service
public interface DrawPrizeService {



    /**
     * 异步抽奖接口
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验抽奖请求
     * @param param
     */
    void checkDrawPrizeParam(DrawPrizeParam param);

    /**
     * 保存中奖者名单
     * @param param
     */
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    /**
     * 删除活动/奖品下的中奖记录
     * @param activityId
     * @param prizeId
     */
    void deleteRecords(Long activityId, Long prizeId);

    /**
     * 获取中奖记录
     * @param param
     * @return
     */
    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
